import { analysisLogs } from "./analysis";
import { writeDB } from "./write-db";

const analysisLogsAndWriteDB = async (accessLogPath: string) => {
  const result = await analysisLogs(accessLogPath);
  await writeDB(result as { [key: string]: any });
};

export default analysisLogsAndWriteDB;
